﻿Public Class list
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        Dim direction As SortDirection
        Dim field As String
        field = ddl_sortBy.SelectedValue
        direction = If(field = "Timestamp", SortDirection.Descending, SortDirection.Ascending)
        listview_quizzes.Sort(field, direction)
    End Sub

End Class